package com.woniuxy.config;

import com.woniuxy.util.ObjectRedisTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;

@Configuration
public class RedisConfig {
    @Bean
    public ObjectRedisTemplate creatort(RedisConnectionFactory redisConnectionFactory){
        return  new ObjectRedisTemplate(redisConnectionFactory);
    }

}
